Skip to content

Conversation

@encukou
Copy link
Member

@encukou encukou commented Jan 23, 2026

I've run through the tutorial with a mentee (best way to test tutorials btw!) and found some things to improve.

  • Pass -v to pip, so compiler output is visible
  • Move the call spam.system(3) up so that error handling is tested right after it's added
  • Use PyUnicode_AsUTF8AndSize as PyUnicode_AsUTF8 is not in the Limited API.
  • Add a footnote about embedded NULs.

📚 Documentation preview 📚: https://cpython-previews--144183.org.readthedocs.build/

- Pass -v to pip, so compiler output is visible
- Move the call ``spam.system(3)`` up so that error handling is tested
  right after it's added
- Use `PyUnicode_AsUTF8AndSize` as `PyUnicode_AsUTF8` is not in the
  Limited API.
- Add a footnote about embedded NULs.
@encukou
Copy link
Member Author

encukou commented Jan 27, 2026

I'll merge around Friday if there are no objections.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

1 participant